import { http } from '@/utils/http/axios';

/**
 * @description: 数据源列表
 */
export function dataSourcePage(params) {
  return http.request({
    url: '/moss-cloud-plugins/plugins/dataSourceConf/page',
    method: 'POST',
    data:params,
  });
}

/**
 * @description: 保存数据源
 */
export function saveDataSourceConf(params) {
  return http.request({
    url: '/moss-cloud-plugins/plugins/dataSourceConf/saveDataSourceConf',
    method: 'POST',
    data:params,
  }, {
    isTransformResponse: false,
  });
}

/**
 * @description: 修改数据源
 */
export function updateDataSourceConf(params) {
  return http.request({
    url: '/moss-cloud-plugins/plugins/dataSourceConf/updateDataSourceConf',
    method: 'POST',
    data:params,
  }, {
    isTransformResponse: false,
  });
}

/**
 * @description: 删除数据源
 */
export function removeDataSourceConf(params) {
  return http.request({
    url: '/moss-cloud-plugins/plugins/dataSourceConf/removeDataSourceConf',
    method: 'POST',
    data:params,
  }, {
    isTransformResponse: false,
  });
}